package com.zyb.warehouse;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//开启redis注解版缓存
@EnableCaching
//开启事务
@EnableTransactionManagement
//扫描Mapper层接口
@MapperScan(basePackages = {"com.zyb.warehouse.mapper", "com.zyb.warehouse.utils"})
@SpringBootApplication
@Slf4j
public class WarehouseApplication {

    public static void main(String[] args) {
        SpringApplication.run(WarehouseApplication.class, args);
        log.info("StartSuccess");
    }

}
